//package com.aliware.tianchi.common;
//
//import java.sql.Connection;
//import java.sql.PreparedStatement;
//import java.sql.SQLException;
//
//public class TimeStatusUtils {
//
//    private static Connection connection;
//
//    static {
//        connection =  MySQLconnection.getConnection();
//    }
//
//
//
//    public static void save(TimeStatus status){
//        String sql = "insert into time_status(time,s_active,s_thread,s_avg,s_concurrency,m_active,m_thread,m_avg,m_concurrency,l_active,l_thread,l_avg,l_concurrency) values(?,?,?,?,?,?,?,?,?,?,?,?,?)";
//        try {
//            PreparedStatement ps =  connection.prepareStatement(sql);
//            ps.setObject(1,status.getTime());
//            ps.setObject(2,status.getsActive());
//            ps.setObject(3,status.getsThread());
//            ps.setObject(4,status.getsAvg());
//            ps.setObject(5,status.getsConcurrency());
//
//            ps.setObject(6,status.getmActive());
//            ps.setObject(7,status.getmThread());
//            ps.setObject(8,status.getmAvg());
//            ps.setObject(9,status.getmConcurrency());
//
//            ps.setObject(10,status.getlActive());
//            ps.setObject(11,status.getlThread());
//            ps.setObject(12,status.getlAvg());
//            ps.setObject(13,status.getlConcurrency());
//            ps.executeUpdate();
//            ps.close();
//        } catch (SQLException e) {
//            e.printStackTrace();
//        }
//    }
//
//}
